import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'
import detail from './modules/detail'
import shopcart from "./modules/shopcart.js";

Vue.use(Vuex);

const modules = {
  // 模块的名字是这里的属性的名字
  home,
  detail,
  shopcart,
};

export default new Vuex.Store({
  modules,
});
